//
//  ASJGlobalDefine.m
//  ASJ001
//
//  Created by zephyrhan on 11/26/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "ASJGlobalDefine.h"
#import "cocos2d.h"

CGPoint worldPos(CGFloat x, CGFloat y) {
    return ccp([[CCDirector sharedDirector] winSize].width * x, [[CCDirector sharedDirector] winSize].height * y);
}


CGFloat winX(CGFloat x) {
    return [[CCDirector sharedDirector] winSize].width * x;
}


CGFloat winY(CGFloat y) {
    return [[CCDirector sharedDirector] winSize].height * y;
}